home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turnbull China Bikeride
/
Turnbull China Bikeride - Disc 2.iso
/
STUTTGART
/
FROMUTS
/
UNIXLIB37B
/
test
/
c
/
systest
< prev
next >
Wrap
Text File
|
1992-03-16
|
293b
|
23 lines
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "sys/syslib.h"
int main()
{
int i;
char b[256];
for (;;)
{
if (!fgets(b,256,stdin)) break;
b[strlen(b) - 1] = 0;
i = system(b);
if (i < 0)
perror("system()");
else
printf("Return Value: %d\n",i);
}
}